# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding model 'University'
        db.create_table('facebook_university', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=200)),
            ('slug', self.gf('django.db.models.fields.SlugField')(max_length=200, db_index=True)),
            ('entryImage', self.gf('django.db.models.fields.files.FileField')(max_length=100, null=True, blank=True)),
            ('closedImage', self.gf('django.db.models.fields.files.FileField')(max_length=100, null=True, blank=True)),
            ('facebookShareCaption', self.gf('django.db.models.fields.CharField')(max_length=200)),
            ('facebookShareDescription', self.gf('django.db.models.fields.CharField')(max_length=400)),
        ))
        db.send_create_signal('facebook', ['University'])

        # Adding model 'FacebookCompetition'
        db.create_table('facebook_facebookcompetition', (
            ('app_id', self.gf('django.db.models.fields.CharField')(max_length=255, primary_key=True)),
            ('app_secret', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
            ('opening_date', self.gf('django.db.models.fields.DateField')()),
            ('closing_date', self.gf('django.db.models.fields.DateField')()),
            ('university', self.gf('django.db.models.fields.related.ForeignKey')(related_name='facebook_competition_competition', to=orm['facebook.University'])),
        ))
        db.send_create_signal('facebook', ['FacebookCompetition'])

        # Adding model 'Entrant'
        db.create_table('facebook_entrant', (
            ('fid', self.gf('django.db.models.fields.CharField')(max_length=200)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=200)),
            ('email', self.gf('django.db.models.fields.EmailField')(max_length=200, primary_key=True)),
            ('size', self.gf('django.db.models.fields.CharField')(default='', max_length=30)),
        ))
        db.send_create_signal('facebook', ['Entrant'])


    def backwards(self, orm):
        
        # Deleting model 'University'
        db.delete_table('facebook_university')

        # Deleting model 'FacebookCompetition'
        db.delete_table('facebook_facebookcompetition')

        # Deleting model 'Entrant'
        db.delete_table('facebook_entrant')


    models = {
        'facebook.entrant': {
            'Meta': {'object_name': 'Entrant'},
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '200', 'primary_key': 'True'}),
            'fid': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'size': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '30'})
        },
        'facebook.facebookcompetition': {
            'Meta': {'object_name': 'FacebookCompetition'},
            'app_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'}),
            'app_secret': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
            'closing_date': ('django.db.models.fields.DateField', [], {}),
            'opening_date': ('django.db.models.fields.DateField', [], {}),
            'university': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'facebook_competition_competition'", 'to': "orm['facebook.University']"})
        },
        'facebook.university': {
            'Meta': {'object_name': 'University'},
            'closedImage': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'entryImage': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'facebookShareCaption': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'facebookShareDescription': ('django.db.models.fields.CharField', [], {'max_length': '400'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '200', 'db_index': 'True'})
        }
    }

    complete_apps = ['facebook']
